FROM python:3

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /usr/src/app/thslhb/

COPY requirements.txt ./
RUN  pip install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./stock.py" ]